package com.ehotting.mqbd.zw.netty.zwAction;

import com.ehotting.eaf.netty.action.Action;
import com.ehotting.eaf.netty.action.ActionAble;
import com.ehotting.eaf.netty.domain.DataAble;
import com.ehotting.mqbd.zw.api.constants.ActionConstants;
import com.ehotting.mqbd.zw.api.domain.netty.ShakeHandReq;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Action(value = ActionConstants.shakeHandStr,isNotice = true)
public class ShakeHandAction implements ActionAble<ShakeHandReq> {
    @Override
    public DataAble invoke(ChannelHandlerContext ctx, ShakeHandReq request) {
        log.info("receive shake hand msg from zw server");
        return new ShakeHandReq();
    }

    @Override
    public Class<?> getRequestClass() {
        return ShakeHandReq.class;
    }
}
